Skip to content

Commit

Permalink
header back to search
Browse files Browse the repository at this point in the history
  • Loading branch information
keery committed May 5, 2021
1 parent f654687 commit 3d660f5
Show file tree
Hide file tree
Showing 43 changed files with 2,625 additions and 171 deletions.
7 changes: 3 additions & 4 deletions back/api/booking/documentation/1.0.0/booking.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,6 @@
"address",
"latitude",
"longitude",
"city",
"country"
],
"properties": {
Expand Down Expand Up @@ -830,9 +829,6 @@
"published": {
"type": "boolean"
},
"city": {
"type": "string"
},
"bookings": {
"type": "array",
"items": {
Expand All @@ -856,6 +852,9 @@
"slug": {
"type": "string"
},
"city": {
"type": "string"
},
"created_by": {
"type": "string"
},
Expand Down
4 changes: 2 additions & 2 deletions back/api/booking/models/booking.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"collection": "message"
},
"espace": {
"model": "espace",
"via": "bookings"
"via": "bookings",
"model": "espace"
},
"place": {
"plugin": "users-permissions",
Expand Down
52 changes: 52 additions & 0 deletions back/api/city/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/cities",
"handler": "city.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/cities/count",
"handler": "city.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/cities/:id",
"handler": "city.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/cities",
"handler": "city.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/cities/:id",
"handler": "city.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/cities/:id",
"handler": "city.delete",
"config": {
"policies": []
}
}
]
}
8 changes: 8 additions & 0 deletions back/api/city/controllers/city.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
Loading

0 comments on commit 3d660f5

Please sign in to comment.