Commit 3a95c01c authored by PDuarte's avatar PDuarte

add project completed

parent 7a5cde5b
......@@ -44,7 +44,7 @@ const Tables = () => {
<Col sm='12'>
<div class="card">
<div class="card-header">
<h4 class="card-title">Project</h4>
<h4 class="card-title">New Project</h4>
</div>
<div class="card-body">
<ProjectCard selectedProject={{
......
......@@ -116,7 +116,7 @@ export const updateProject = project => {
export const addProject = project => {
return (dispatch, getState) => {
axios
.post(`${process.env.REACT_APP_API}/api/projects/${project.id}`, project)
.post(`${process.env.REACT_APP_API}/api/projects`, project)
.then(response => {
dispatch({
type: 'ADD_PROJECT',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment