Skip to content

Commit

Permalink
Add chains
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 5, 2024
1 parent 74f4ea7 commit a276a53
Show file tree
Hide file tree
Showing 6 changed files with 2,071 additions and 614 deletions.
23 changes: 23 additions & 0 deletions src/api/network/content-types/network/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"kind": "collectionType",
"collectionName": "networks",
"info": {
"singularName": "network",
"pluralName": "networks",
"displayName": "Network"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true,
"unique": true
},
"chainId": {
"type": "integer"
}
}
}
7 changes: 7 additions & 0 deletions src/api/network/controllers/network.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* network controller
*/

import { factories } from '@strapi/strapi'

export default factories.createCoreController('api::network.network');
Loading

0 comments on commit a276a53

Please sign in to comment.