Commit 3a95c01c authored by PDuarte's avatar PDuarte

add project completed

parent 7a5cde5b
...@@ -44,7 +44,7 @@ const Tables = () => { ...@@ -44,7 +44,7 @@ const Tables = () => {
<Col sm='12'> <Col sm='12'>
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h4 class="card-title">Project</h4> <h4 class="card-title">New Project</h4>
</div> </div>
<div class="card-body"> <div class="card-body">
<ProjectCard selectedProject={{ <ProjectCard selectedProject={{
......
...@@ -116,7 +116,7 @@ export const updateProject = project => { ...@@ -116,7 +116,7 @@ export const updateProject = project => {
export const addProject = project => { export const addProject = project => {
return (dispatch, getState) => { return (dispatch, getState) => {
axios axios
.post(`${process.env.REACT_APP_API}/api/projects/${project.id}`, project) .post(`${process.env.REACT_APP_API}/api/projects`, project)
.then(response => { .then(response => {
dispatch({ dispatch({
type: 'ADD_PROJECT', 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